package com.xq.spring.jdbctemplate;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 * 功能说明:
 * <p>创建时间: 2018-11-03 20:09</p>
 *
 * @author 郭凯强
 * @version 1.0-SNAPSHOT
 */
public class AnnotationBF {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext(BeansConfig.class);
        JdbcTemplate jdbcTemplate = context.getBean(JdbcTemplate.class);
        jdbcTemplate.execute("DROP TABLE customers IF EXISTS");
    }
}
